﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace InvestmentIntelligence.DbModel.Models
{
    using System;

    [Table("TradeUpdate", Schema = "TradingData")]
    public class TradeUpdate
    {
        [Key]
        public int Id { get; set; }

        public string OriginalId { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        [ReadOnly(true)]
        public DateTime Timestamp { get; set; }

        public byte UpdateReason { get; set; }

        
        public string Data { get; set; }

        public int FundBookEntityId { get; set; }

        public DateTime TradeDate { get; set; }

    }
}
